package com.asohofrucol.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.*;

import com.asohofrucol.model.intf.BasicSaveEntity;


/**
 * The persistent class for the technical_assistance database table.
 * 
 */
@Entity
@Table(name="technical_assistance")
public class TechnicalAssistance implements Serializable, BasicSaveEntity {
	private static final long serialVersionUID = 1L;

	@Id
	private Long id;

	private String altitude;


	@Column(name="crop_area")
	private String cropArea;

	@Column(name="north_latitude")
	private String northLatitude;


	@Column(name="proyect_code")
	private String proyectCode;

	@Column(name="proyect_name")
	private String proyectName;


	@Column(name="west_longitude")
	private String westLongitude;
	
	@Temporal(TemporalType.DATE)
	@Column(name="modified_date")
	private Date modifiedDate;

	@Column(name="modifier_user")
	private String modifierUser;
	
	private String status;

	//bi-directional many-to-one association to ComboValue
	@ManyToOne
	@JoinColumn(name="production_line")
	private ComboValue comboValueTAProductionLine;


	//bi-directional many-to-one association to Ruat
	@ManyToOne
	private Ruat ruat;
	
	//bi-directional many-to-one association to TechnicalAssitanceVisit
	@OneToMany(mappedBy="technicalAssistance")
	private List<TechnicalAssistanceVisit> technicalAssitanceVisits;	

	public TechnicalAssistance() {
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAltitude() {
		return this.altitude;
	}

	public void setAltitude(String altitude) {
		this.altitude = altitude;
	}


	public String getCropArea() {
		return this.cropArea;
	}

	public void setCropArea(String cropArea) {
		this.cropArea = cropArea;
	}

	public String getNorthLatitude() {
		return this.northLatitude;
	}

	public void setNorthLatitude(String northLatitude) {
		this.northLatitude = northLatitude;
	}


	public String getProyectCode() {
		return this.proyectCode;
	}

	public void setProyectCode(String proyectCode) {
		this.proyectCode = proyectCode;
	}

	public String getProyectName() {
		return this.proyectName;
	}

	public void setProyectName(String proyectName) {
		this.proyectName = proyectName;
	}


	public String getWestLongitude() {
		return this.westLongitude;
	}

	public void setWestLongitude(String westLongitude) {
		this.westLongitude = westLongitude;
	}


	public ComboValue getComboValueTAProductionLine() {
		return comboValueTAProductionLine;
	}

	public void setComboValueTAProductionLine(ComboValue comboValueTAProductionLine) {
		this.comboValueTAProductionLine = comboValueTAProductionLine;
	}

	public Ruat getRuat() {
		return this.ruat;
	}

	public void setRuat(Ruat ruat) {
		this.ruat = ruat;
	}

	public List<TechnicalAssistanceVisit> getTechnicalAssitanceVisits() {
		return technicalAssitanceVisits;
	}

	public void setTechnicalAssitanceVisits(
			List<TechnicalAssistanceVisit> technicalAssitanceVisits) {
		this.technicalAssitanceVisits = technicalAssitanceVisits;
	}

	public Date getModifiedDate() {
		return modifiedDate;
	}

	public void setModifiedDate(Date modifiedDate) {
		this.modifiedDate = modifiedDate;
	}

	public String getModifierUser() {
		return modifierUser;
	}

	public void setModifierUser(String modifierUser) {
		this.modifierUser = modifierUser;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}